package com.derucci.elf.openrest.vo.sleep

import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.annotations.ApiModelProperty
import org.springframework.format.annotation.DateTimeFormat
import java.util.*
import javax.validation.constraints.NotBlank

class OpenDaySleepVo{

    @ApiModelProperty("报告时间，格式:yyyy/MM/dd(周或月的最后一天)，null时查询最近的报告")
    @DateTimeFormat(pattern = "yyyy/MM/dd")
    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    var docDate: Date? = null

    @NotBlank(message = "设备编码或设备分区编码不能为空")
    @ApiModelProperty("设备编码或设备分区编码")
    var machineUniqueCode: String? = null

    @ApiModelProperty("请求版本,V5.0.0")
    @NotBlank(message = "文档ID不能为空")
    var version: String? = null

    /**客户端ID*/
    var clientId: String? = null
}